package com.kongjs.application.config;

import com.kongjs.application.enums.CaptchaType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "captcha")
public class CaptchaProperties {
    private Boolean enable = false;
    private CaptchaType type = CaptchaType.Random;
    private Integer width = 120;
    private Integer height = 30;
    private Integer codeCount = 4;
    private Integer lineCount = 4;
    private Integer circleCount = 4;
    private Integer thickness = 4;
    private Float size = 0.75F;
}
